<?php
require_once __DIR__.'/../config/env_config.php';
require_once __DIR__.'/../vendor/autoload.php';

use Wish\WishAuth;

$client_id = WISH_CLIENT_ID;
$client_secret = WISH_CLIENT_SECRET;
$code = WISH_AUTH_CODE;
$redirect_uri = WISH_REDIRECT_URI;

$auth = new WishAuth($client_id, $client_secret, 'prod');
$response = $auth->getToken($code, $redirect_uri);
print_r($response->getData());die;
$access_token = $response->getData()->access_token;
print_r($access_token);die;